/**
 * @Author: 耿立强
 * @Date: 2019/6/20
 * @Last Modified by:   耿立强
 * @Last Modified time: 2019-06-20 15:45:00
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 经销商端批量活动查询列表
export const searchDListRecord = params => axios.post(`${SERVER.DMSCLOUD_ACTIVITY}/ttRpMa/searchDListRecord`, params);

//活动车辆列表
export const showTtRpMaVin = params => axios.get(`${SERVER.DMSCLOUD_ACTIVITY}/ttRpMa/showTtRpMaVin`, {params});



//列表导出
export const exportSearchDListRecord = params =>
{
  return axios({
    url: `${SERVER.DMSCLOUD_ACTIVITY}/ttRpMa/exportSearchDListRecord`,
    method: 'get',
    params:params,
    responseType: 'blob'
  });
};
//下载中心导出
export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);
//车辆导出
export const exportShowTtRpMaVin = params =>
{
  return axios({
    url: `${SERVER.DMSCLOUD_ACTIVITY}/ttRpMa/exportShowTtRpMaVin`,
    method: 'get',
    params:params,
    responseType: 'blob'
  });
};

